package demo.dto.galaxy;

import java.io.Serializable;
import java.util.Date;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.alibaba.fastjson.JSONObject;

/**
 * 
 * @author xufeng 2018-01-19
 *
 */
@Document(collection = "bqs_record")
public class BqsRecord implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    private ObjectId id;
    private String serialNo;
    private Long userId;
    private Long customerId;
    private String realName;
    private String cardId;
    private String phone;
    private String final_decision;
    private Integer final_score;
    private JSONObject bqsReportResponse;
    private String result;
    private Boolean isFromVendor;
    private String client;
    private Long costTime;
    private Date createTime;

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getFinal_decision() {
        return final_decision;
    }

    public void setFinal_decision(String final_decision) {
        this.final_decision = final_decision;
    }

    public Integer getFinal_score() {
        return final_score;
    }

    public void setFinal_score(Integer final_score) {
        this.final_score = final_score;
    }

    public JSONObject getBqsReportResponse() {
        return bqsReportResponse;
    }

    public void setBqsReportResponse(JSONObject bqsReportResponse) {
        this.bqsReportResponse = bqsReportResponse;
    }

    public Boolean getIsFromVendor() {
        return isFromVendor;
    }

    public void setIsFromVendor(Boolean isFromVendor) {
        this.isFromVendor = isFromVendor;
    }

    public String getClient() {
        return client;
    }

    public void setClient(String client) {
        this.client = client;
    }

    public Long getCostTime() {
        return costTime;
    }

    public void setCostTime(Long costTime) {
        this.costTime = costTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    @Override
    public String toString() {
        return "BqsRecord [id=" + id + ", serialNo=" + serialNo + ", userId=" + userId + ", customerId=" + customerId
                + ", realName=" + realName + ", cardId=" + cardId + ", phone=" + phone + ", final_decision="
                + final_decision + ", final_score=" + final_score + ", bqsReportResponse=" + bqsReportResponse
                + ", result=" + result + ", isFromVendor=" + isFromVendor + ", client=" + client + ", costTime="
                + costTime + ", createTime=" + createTime + "]";
    }

}
